<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>合亿购</title>
		<link rel="stylesheet" type="text/css" href="css/public.css" />
		<link rel="stylesheet" type="text/css" href="css/index.css" />
		<script src="./js/rem.js" type="text/javascript" charset="utf-8"></script>
		<script src="./js/mock.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div class="start container">
			<div class="entrance" id="entrance">
				3s进入
			</div>
			<div class="contact-way">
				<p>小程序&app专业定制开发</p>
				<p>QQ：2590008065</p>
			</div>
			<p class="bottom-p">北京中淏文化传媒有限公司</p>
		</div>
		<script src="./js/app.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			document.addEventListener('plusready', function() {
				app.touchend({
					el:'.entrance',
					path:'page/first-page.html',
					effect:'slide-in-right',
					time:300,
				});
				var entrance=document.getElementsByClassName('entrance')[0];
				var i = 2;
				// console.log("所有plus api都应该在此事件发生后调用，否则会出现plus is undefined。")
				var set = setInterval(function() {
					if (i > -1) {
						entrance.innerHTML = i-- + 's进入';
					} else if (i <= 0) {
						plus.webview.open('page/first-page.html', 'm', {}, 'slide-in-right', 400);
						clearInterval(set);
					}
				}, 1000);
			});
		</script>
	</body>
</html>
